package com.tencent.devops.common.webhook.service.code.pojo

import com.tencent.devops.repository.sdk.github.response.PullRequestResponse
import com.tencent.devops.scm.code.p4.api.P4ChangeList
import com.tencent.devops.scm.code.p4.api.P4ServerInfo
import com.tencent.devops.scm.pojo.GitCommit
import com.tencent.devops.scm.pojo.GitCommitReviewInfo
import com.tencent.devops.scm.pojo.GitMrInfo
import com.tencent.devops.scm.pojo.GitMrReviewInfo
import com.tencent.devops.scm.pojo.WebhookCommit

/**
 * 事件触发仓库级缓存
 */
data class EventRepositoryCache(
    var gitMrReviewInfo: GitMrReviewInfo? = null,
    var gitMrInfo: GitMrInfo? = null,
    var gitMrChangeFiles: Set<String>? = null,
    var gitCommitReviewInfo: GitCommitReviewInfo? = null,
    var gitCompareChangeFiles: Set<String>? = null,
    var gitDefaultBranchLatestCommitInfo: Pair<String?, GitCommit?>? = null,
    var repoAuthUser: String? = null,
    var p4ChangeFiles: P4ChangeList? = null,
    var p4ShelveChangeFiles: P4ChangeList? = null,
    var serverInfo: P4ServerInfo? = null,
    var githubPrInfo: PullRequestResponse? = null,
    var webhookCommitList: List<WebhookCommit>? = null
)
